package homework35;

public abstract class LeaveApproval {
    protected LeaveApproval successor;//定义后继对象
    protected String name;//审批人员

    public LeaveApproval(String name){
        this.name = name;
    }
    public void setSuccessor(LeaveApproval successor){
        this.successor = successor;
    }
    public abstract void hardLeave(Leave left);
}
